package cn.iocoder.yudao.module.mqtt.controller.admin.configalarm.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - MQTT报警配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ConfigAlarmRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24634")
    @ExcelProperty("主键ID")
    private Long id;


    @Schema(description = "报警类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报警类型")
    private String alarmType;


    @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "数据类型", converter = DictConvert.class)
    @DictFormat("mqtt_device_report_data_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String dataType;

    @Schema(description = "单位", example = "2")
    private String unit;


    @Schema(description = "大于的值", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("大于的值")
    private String greaterValue;

    @Schema(description = "小于的值", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("小于的值")
    private String lessValue;

    @Schema(description = "微信消息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "微信消息", converter = DictConvert.class)
    @DictFormat("mqtt_alarm_msg") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String openWeixin;

    @Schema(description = "短信消息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "短信消息", converter = DictConvert.class)
    @DictFormat("mqtt_alarm_msg") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String openSms;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("是否启用")
    private String ararmStatus;

    @Schema(description = "描述", example = "你说的对")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}